repo.or.cz
/
andmenj-acm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Solving 10385 - Duathlon (Ternary search)
[andmenj-acm.git]
/
10970 - Big Chocolate
/
p10970.cpp
blob
1fb779c592c064adf58c5213101d6826d6605b50
1
#include <iostream>
2
using namespace
std
;
3
4
int
main
(){
5
int
n
,
m
;
6
while
(
cin
>>
n
>>
m
){
7
cout
<< (
n
*
m
)-
1
<<
endl
;
8
}
9
return
0
;
10
}